class Comment < ActiveRecord::Base
	belongs_to :post
	validates_presence_of :author, :content, :email
	validates_size_of :author, :within => 3..15
	validates_format_of :email,
		:with => /^([^@s]+)((?:[-a-z0-9]+.)+[a-z]{2,})$/i
end
